package com.zut.subject.application.convert;
import com.zut.subject.application.dto.SubjectInfoDto;
import com.zut.subject.domain.entity.SubjectInfoBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface convertSubjectInfo {

    convertSubjectInfo INSTANCE = Mappers.getMapper(convertSubjectInfo.class);
    //SubjectInfoDto类型转换为Bo类型
    SubjectInfoBo toSubjectInfoBo(SubjectInfoDto subjectInfoDto);

    List<SubjectInfoDto> toListSubjectInfoDto(List<SubjectInfoBo> subjectInfoBoList);

    SubjectInfoDto toSubjectInfoDto(SubjectInfoBo Bo);

}
